package cn.dglydrpy.fundmanagement.dao.entiey;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;

@TableName("tax_calculation")
@Data
public class TaxCalculation {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("transaction_id")
    private Long transactionId;

    @TableField("fund_code")
    private String fundCode;

    @TableField("portfolio_id")
    private Long portfolioId;

    @TableField("holding_period")
    private Integer holdingPeriod; // 持有期(天)

    @TableField("profit")
    private BigDecimal profit; // 盈利

    @TableField("tax_rate")
    private BigDecimal taxRate; // 税率

    @TableField("tax_amount")
    private BigDecimal taxAmount; // 应缴税额

    @TableField("created_time")
    private String createdTime;

    @TableField("updated_time")
    private String updatedTime;

    @TableField("status")
    private String status;
}